package com.dave.getaway.app.service;

import com.dave.getaway.app.registry.metadata.MetaDataCollector;
import org.apache.dubbo.common.URL;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;
import java.util.concurrent.ConcurrentMap;

/**
 * @author wangwj
 * @version 1.0
 * @date 2021/12/18
 * @description: TODO
 */

public class AbstractService {

    @Autowired
    private RegistryServerSync sync;

    @Autowired
    protected MetaDataCollector metaDataCollector;

    public ConcurrentMap<String, ConcurrentMap<String, Map<String, URL>>> getRegistryCache() {
        return sync.getRegistryCache();
    }
}
